import {createApp} from 'vue'
import {createPinia} from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css' //导入 ElementPlus 组件库所需的全局 CSS 样式\
import * as Icons from '@element-plus/icons-vue'
import App from './App.vue'
import router from './router'


const app = createApp(App)
const pinia = createPinia()

app.use(ElementPlus)
Object.keys(Icons).forEach(key => {
    app.component(key, Icons[key as keyof typeof Icons])
})


app.use(pinia)
app.use(router)
app.mount('#app')
